PROJECT_NAME := mqtt
PROJECT_PATH := $(abspath .)
PROJECT_BOARD := evb
export PROJECT_PATH PROJECT_BOARD

-include ./proj_config.mk

ifeq ($(origin BL60X_SDK_PATH), undefined)
BL60X_SDK_PATH_GUESS ?= $(shell pwd)
BL60X_SDK_PATH ?= $(BL60X_SDK_PATH_GUESS)/../../..
$(info ****** Please SET BL60X_SDK_PATH ******)
$(info ****** Trying SDK PATH [$(BL60X_SDK_PATH)])
endif

COMPONENTS_BLSYS := bltime blfdt blmtd bl_os_adapter rfparam_adapter_tmp bl602_os_adapter bl602 bl602_std
COMPONENTS_LOOPS := bloop loopadc looport yloop loopset looprt
COMPONENTS_VFS := romfs
COMPONENTS_NETWORK := sntp dns_server lwip lwip_dhcpd
COMPONENTS_MQTT := axk_common http-parser axk_tls axk_mqtt wpa_supplicant tcp_transport blcrypto_suite
COMPONENTS_WIIF := wifi wifi_manager wifi_hosal

INCLUDE_COMPONENTS += freertos_riscv_ram newlibc
INCLUDE_COMPONENTS += mbedtls_lts vfs hosal coredump blog
INCLUDE_COMPONENTS += utils cli cjson

INCLUDE_COMPONENTS += $(COMPONENTS_LOOPS)
INCLUDE_COMPONENTS += $(COMPONENTS_BLSYS)
INCLUDE_COMPONENTS += $(COMPONENTS_VFS)
INCLUDE_COMPONENTS += $(COMPONENTS_NETWORK)
INCLUDE_COMPONENTS += $(COMPONENTS_WIIF)
INCLUDE_COMPONENTS += $(COMPONENTS_MQTT)

INCLUDE_COMPONENTS += $(PROJECT_NAME)


INCLUDE_COMPONENTS += mqtt/wifi_task

include $(BL60X_SDK_PATH)/make_scripts_riscv/project.mk